<div>
    <div class="eChart-div">
        <div id="bucket_bar" style="width: 100%;height: 650px"></div>
    </div>
</div>

<script type="text/javascript">
    var bucket = JSON.parse('{!! $bucket !!}')

    var bucketBar = {
        id:'bucket_bar',
        title:'店铺水桶统计/桶',
        legend:['店外总水桶'],
        category:[],
        series:{
            0:[]
        }
    }
    $.each(bucket, function (i,val) {
        bucketBar.category.push(val.title)
        bucketBar.series[0].push(parseInt(val.bucket_num_out))
    })

    $(function () {
        plusMinusBar(bucketBar)
    });
</script>
